/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.tracking.navegacion_core.model;

/**
 *
 * @author Cuni
 */
public class Sended extends OrderState{
    
    public Sended(){};
    
 @Override
 public void cancelOrder(Order order) {
     OrderState newState = new Canceled();
     order.setState(newState);
 }
 
 @Override
 public void suspendOrder(Order order, OrderState previousState){
     OrderState newState = new Suspended(this);
     order.setState(newState);
 }
 
 @Override
    public String toString() {
            return "Sended";
    }
 
}
